package com.dcd.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.solr.core.mapping.SolrDocument;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@SolrDocument(solrCoreName = "don_che_di")
/*车系表*/
public class Car_series implements Serializable {

    private int car_series_id;//车系id
    private int car_series_brand_fk_id;//品牌id
    private int car_series_car_level_fk_id;//级别id
    private int car_series_different_countries_fk_id;//国别id
    private int car_series_points_fk_id;//懂车分id
    private String car_series_name;//车系名称
    private int car_series_long;//长
    private int car_series_wide;//宽
    private int car_series_high;//高
    private int car_series_wheelbase;//轴距
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date car_series_list_date;//上市时间
    private int car_series_popularity;//热门度
    private String car_series_images_url_1;//车系图片1

    /*拓展字段*/
    private double min_manufacturer_price;//该车系所有车型中最低厂商指导价
    private double max_manufacturer_price;//该车系所有车型中最高厂商指导价
    private double min_distributer_price;//该车系所有车型中最低经销商报价
    private double max_distributer_price;// 该车系所有车型中最高经销商报价
    private int car_model_count;//该车系车型数量
    private int car_series_images_count;//该车系图片总数量
    private int appearance_images_count;//外观图片总数量
    private int interior_images_count;//内饰图片总数量
    private int space_images_count;//空间图片总数量
    private int auto_show_images_count;//车展图片总数量

    private int video_id;  //扩展视频id
    private Brand brand;//品牌对象
    private Car_points car_points;//懂车分对象
    private Car_level car_level;//级别对象
    private Different_countries different_countries;//国别对象
    private Car_model car_model;//车型对象
    private Sales sales;//销量对象
    private Information information;//该车系的资讯

}
